﻿using System;
using System.ComponentModel.DataAnnotations;
using FollowMe.Infrastructure;

namespace FollowMe.Model
{
    public class RegistrationID : IAggregateRoot
    {
        [Key]
        public Guid ID { get; internal set; }

        [Required]
        public Guid MemberID { get; internal set; }

        [Required]
        public string RegID { get; internal set; }

        [Required, MaxLength(65)]
        public string AndroidID { get; internal set; }

        public RegistrationID()
        {

        }

        public RegistrationID(Guid memberid, string regid, string androidID)
        {
            ID = Guid.NewGuid();
            MemberID = memberid;
            RegID = regid;
            AndroidID = androidID;
        }
        protected virtual void Dispose(Boolean dis)
        {
            if (dis)
            {

            }
        }

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }
    }
}
